package com.jilefojing.beans.data.response.base;

import java.io.Serializable;

import com.jilefojing.beans.data.enums.ResponseEnum;

public class ResponseData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1441844005939502453L;
	private String responseCode = ResponseEnum.SUCCESS.getValue();
	private String responseMessage = ResponseEnum.SUCCESS.getMsg();
	private Object data;
	private boolean success = true;

	public void setResponseEnum(ResponseEnum responseEnum) {
		this.responseCode = responseEnum.getValue();
		this.responseMessage = responseEnum.getMsg();
	}

	public String getResponseCode() {
		return responseCode;
	}

	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}

	public String getResponseMessage() {
		return responseMessage;
	}

	public void setResponseMessage(String responseMessage) {
		this.responseMessage = responseMessage;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
